for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
class NodeForm {
/**
* Show this form in a jQueryUI dialog
*
* @return {void}
*/
show() {
this.hasBeenOpened = true;
this.$form.dialog({
title: this.name,
closeText: LANG.plugins.prosemirror.cancel,
LANG
/** global: LANG */
This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.
To learn more about declaring variables in Javascript, see the MDN.
width: 800,
appendTo: '.dokuwiki',
modal: true,
open: () => {
const TIMEOUT_TO_LOOK_SMOOTH = 50;
window.setTimeout(() => {
// hack to ensure this dialog is in front of other open dialogs, e.g. the footnote dialog.
this.$form.dialog('moveToTop');
}, TIMEOUT_TO_LOOK_SMOOTH);
},
});
}
* Hide this form/dialog
hide() {
if (this.hasBeenOpened) {
this.$form.dialog('close');
* Bind a callback to an event on the form
* @param {string} eventName name of the event, can contain namespaces (e.g. click.myPlugin )
* @param {function} callback the handler function to be attached to the event
on(eventName, callback) {
this.$form.on(eventName, callback);
* Remove a handler from an event
off(eventName) {
this.$form.off(eventName);
destroy() {
this.$form.remove();
export default NodeForm;
This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.
To learn more about declaring variables in Javascript, see the MDN.